import { WidgetClass } from "./widget";
export class WidgetIcon extends WidgetClass {
  constructor(options = {}) {
    super(options);
    const { ports } = options
    if (ports) {
      this.ports = ports;
    } else {
      this.ports = this.assembleDefaultPorts();
    }
  }
  assembleDefaultPorts() {
    const superState = super.assembleDefaultPorts();
    return {
      ...superState,
      events: [
       ...superState.events,
      ],
    };
  }
}
